package com.nlelpct.manage.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author 小马
 * @since 2023-07-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("menu")
public class Menu extends Model<Menu> {

    private static final long serialVersionUID = 1L;

    /**
     * 菜单id
     */
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 路径编码
     */
    private String code;

    /**
     * 菜单名称
     */
    @TableField("menuName")
    private String menuname;

    /**
     * 父级节点
     */
    private String parentId;

    /**
     * 资源路径
     */
    private String router;

    /**
     * 菜单类型
     */
    private String type;

    /**
     * 菜单描述
     */
    private String description;

    /**
     * 创建时间
     */
    private LocalDateTime cjsj;

    /**
     * 更新时间
     */
    private LocalDateTime xgsj;

    private String icon;

    /**
     * 是否是 内置 0-否，1-是
     */
    private Boolean isBuiltIn;

    private String title;

    private String systemId;

    private Integer menuOrder;


    public static final String ID = "id";

    public static final String CODE = "code";

    public static final String MENUNAME = "menuName";

    public static final String PARENT_ID = "parent_id";

    public static final String ROUTER = "router";

    public static final String TYPE = "type";

    public static final String DESCRIPTION = "description";

    public static final String CJSJ = "cjsj";

    public static final String XGSJ = "xgsj";

    public static final String ICON = "icon";

    public static final String IS_BUILT_IN = "is_built_in";

    public static final String TITLE = "title";

    public static final String SYSTEM_ID = "system_id";

    public static final String MENU_ORDER = "menu_order";


}
